package com.woniuxy.oa.entity;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonProperty;

public class Approval {
	private Integer a_id;
	private Integer e_id;
	private String c_time;
	private Integer a_type;
	private Integer a_state;
	
//	@JsonProperty("qa_eid")
	private Integer a_eid;
	
//	@JsonProperty("qa_time")
	private String a_time;
	
//	@JsonProperty("qu_time")
	private Timestamp u_time;
	private Integer a_flag;
	
	
	//额外的东西，需要就查询，不需要就不查询
	private ApprovalType approvalType;
	private String stateName;
	//这是发起人
	private Employee emp;
	//这是审批人
	private Employee aEmp;
	private Holiday holiday;
	private Reimbursement reimbursement;
	private Goods_claim goodsClaim;
	private Goods_purchase goodsPurchase;
	private Overtime overTime;
	private Notice notice;
	/*^^^^^^^^^^^^^^还需要添加加班，申领、申购、公告^^^^^^^^^^^^^^^^^*/
	@Override
	public String toString() {
		return "Approval [a_id=" + a_id + ", e_id=" + e_id + ", c_time=" + c_time + ", a_type=" + a_type + ", a_state="
				+ a_state + ", a_eid=" + a_eid + ", a_time=" + a_time + ", u_time=" + u_time + ", a_flag=" + a_flag
				+ ", approvalType=" + approvalType + ", stateName=" + stateName + ", emp=" + emp + ", aEmp=" + aEmp
				+ ", holiday=" + holiday + ", reimbursement=" + reimbursement + ", goodsClaim=" + goodsClaim
				+ ", goodsPurchase=" + goodsPurchase + ", overTime=" + overTime + ", notice=" + notice + "]";
	}
	public Approval() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Approval(Integer a_id, Integer e_id, String c_time, Integer a_type, Integer a_state, Integer a_eid,
			String a_time, Timestamp u_time, Integer a_flag, ApprovalType approvalType, String stateName, Employee emp,
			Employee aEmp, Holiday holiday, Reimbursement reimbursement, Goods_claim goodsClaim,
			Goods_purchase goodsPurchase, Overtime overTime, Notice notice) {
		super();
		this.a_id = a_id;
		this.e_id = e_id;
		this.c_time = c_time;
		this.a_type = a_type;
		this.a_state = a_state;
		this.a_eid = a_eid;
		this.a_time = a_time;
		this.u_time = u_time;
		this.a_flag = a_flag;
		this.approvalType = approvalType;
		this.stateName = stateName;
		this.emp = emp;
		this.aEmp = aEmp;
		this.holiday = holiday;
		this.reimbursement = reimbursement;
		this.goodsClaim = goodsClaim;
		this.goodsPurchase = goodsPurchase;
		this.overTime = overTime;
		this.notice = notice;
	}
	public Integer getA_id() {
		return a_id;
	}
	public void setA_id(Integer a_id) {
		this.a_id = a_id;
	}
	public Integer getE_id() {
		return e_id;
	}
	public void setE_id(Integer e_id) {
		this.e_id = e_id;
	}
	public String getC_time() {
		return c_time;
	}
	public void setC_time(String c_time) {
		this.c_time = c_time;
	}
	public Integer getA_type() {
		return a_type;
	}
	public void setA_type(Integer a_type) {
		this.a_type = a_type;
	}
	public Integer getA_state() {
		return a_state;
	}
	public void setA_state(Integer a_state) {
		this.a_state = a_state;
	}
	public Integer getA_eid() {
		return a_eid;
	}
	public void setA_eid(Integer a_eid) {
		this.a_eid = a_eid;
	}
	public String getA_time() {
		return a_time;
	}
	public void setA_time(String a_time) {
		this.a_time = a_time;
	}
	public Timestamp getU_time() {
		return u_time;
	}
	public void setU_time(Timestamp u_time) {
		this.u_time = u_time;
	}
	public Integer getA_flag() {
		return a_flag;
	}
	public void setA_flag(Integer a_flag) {
		this.a_flag = a_flag;
	}
	public ApprovalType getApprovalType() {
		return approvalType;
	}
	public void setApprovalType(ApprovalType approvalType) {
		this.approvalType = approvalType;
	}
	public String getStateName() {
		return stateName;
	}
	public void setStateName(String stateName) {
		this.stateName = stateName;
	}
	public Employee getEmp() {
		return emp;
	}
	public void setEmp(Employee emp) {
		this.emp = emp;
	}
	public Employee getaEmp() {
		return aEmp;
	}
	public void setaEmp(Employee aEmp) {
		this.aEmp = aEmp;
	}
	public Holiday getHoliday() {
		return holiday;
	}
	public void setHoliday(Holiday holiday) {
		this.holiday = holiday;
	}
	public Reimbursement getReimbursement() {
		return reimbursement;
	}
	public void setReimbursement(Reimbursement reimbursement) {
		this.reimbursement = reimbursement;
	}
	public Goods_claim getGoodsClaim() {
		return goodsClaim;
	}
	public void setGoodsClaim(Goods_claim goodsClaim) {
		this.goodsClaim = goodsClaim;
	}
	public Goods_purchase getGoodsPurchase() {
		return goodsPurchase;
	}
	public void setGoodsPurchase(Goods_purchase goodsPurchase) {
		this.goodsPurchase = goodsPurchase;
	}
	public Overtime getOverTime() {
		return overTime;
	}
	public void setOverTime(Overtime overTime) {
		this.overTime = overTime;
	}
	public Notice getNotice() {
		return notice;
	}
	public void setNotice(Notice notice) {
		this.notice = notice;
	}
	
	
}
